import request from '@/utils/request'

// 查询确认单列表
export function listConfirm(query) {
  return request({
    url: '/confirm/confirm/list',
    method: 'get',
    params: query
  })
}

// 查询确认单详细
export function getConfirm(jiesuanListId) {
  return request({
    url: '/confirm/confirm/' + jiesuanListId,
    method: 'get'
  })
}

// 新增确认单
export function addConfirm(data) {
  return request({
    url: '/confirm/confirm',
    method: 'post',
    data: data
  })
}

// 修改确认单
export function updateConfirm(data) {
  return request({
    url: '/confirm/confirm',
    method: 'put',
    data: data
  })
}

// 删除确认单
export function delConfirm(jiesuanListId) {
  return request({
    url: '/confirm/confirm/' + jiesuanListId,
    method: 'delete'
  })
}
